#include <iostream>
#include "walls.h"

int main()
{
    cout << "Initialising wall list" << endl;
    Wall_List *walls = new Wall_List();
    cout << "Loading up wall list with 10 seemingly random walls..." << endl;
    for (int i=0;i!=10;++i)
    {
        walls->add_wall((i+1)*2.0, (i+1)*2.0, 20.0f, 20.0f, 40.0f, 0.2f);
    }
    walls->print_all();
    cout << "Iterating through wall list" << endl;
    for (walls->start();walls->current!=NULL;walls->next())
    {
        walls->print_current();
    }
    cout << "Deleting wall list" << endl;
    walls->empty_list();
    if (walls->first == NULL)
    {
        cout << "List deletion successful" << endl;
    }
}
